<template>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item v-for="item in navData" :key="item.path" :to="{ path: item.path }">{{ item.meta.title }}</el-breadcrumb-item>
    </el-breadcrumb>
</template>
<script>

export default {
    data() {
        return {

        }
    },
    // created() {
    //     console.log('面包屑1111111111', this.$route.matched);
    // },
    computed: {
        navData() {
            let match = this.$route.matched;
            match[0].path = '/';
            // console.log('match', this.$route.matched);
            return match;
        }
    }
}
</script>
<style lang="">
    
</style>